package com.kalvan.commons.constant;

/**
 * 标准开关状态
 * @author chenliang
 */
public enum State {
    ENABLE(0, "启用"),
    DISABLE(1, "禁用"),
    ;

    private int code;
    private String desc;

    State(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
